package chapter15;

/**
 * Created by lzy
 * Date: 2018/5/13
 */
public class BasicHolder<T> {
    T element;

    public T get() {
        return this.element;
    }

    public void set(T t) {
        this.element = t;
    }

    public void f() {
        System.out.println("element type is " + this.element.getClass().getSimpleName());
    }
}
